package com.itany.service;

import com.github.pagehelper.PageInfo;
import com.itany.exception.DisabledException;
import com.itany.exception.EnabledException;
import com.itany.pojo.User;

/**
 * 用户服务
 *
 * @author Tom
 * @date 2021/06/26
 */
public interface UserService {

    PageInfo<User> findUserAll(Integer page, Integer rows);

    void modifyById(Integer id, String username, String phone, String email, String interest);

    void modifyStatusDisable(Integer id) throws DisabledException;

    void modifyStatusEnable(Integer id) throws EnabledException;

    PageInfo<User> findByName(Integer page, Integer rows, String keyword, Integer searchType);
}
